﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE HTML>
<html>
<head>
<jsp:include page="../../public/head.jsp"></jsp:include>
<title>反馈信息管理</title>
</head>
<body>
<jsp:include page="../../public/nav.jsp"></jsp:include>
<div class="page-container">
	<!-- 查询开始 -->
	<div class="text-c"> 更新日期：
		<input type="text" onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'datemax\')||\'%y-%M-%d\'}' })" id="startTime" class="input-text Wdate" style="width:120px;">
		-
		<input type="text" onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'datemin\')}',maxDate:'%y-%M-%d' })" id="endTime" class="input-text Wdate" style="width:120px;">
		<label>菜单名字<input type="text" class="input-text" style="width:250px" placeholder="菜单名字" id="name" name=""></label>
		<label>ID<input type="text" class="input-text" style="width:250px" placeholder="菜单ID" id="id" name=""></label>
		<button type="submit" class="btn btn-success radius" id="serchId" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
	</div>
	<!-- 查询结束 -->
	
	<div class="cl pd-5 bg-1 bk-gray mt-20"> 
		<span class="l">
		<a href="javascript:;" onclick="add('添加菜单','/system/managerMenueResMenue/addHtml.html','','510')" class="btn btn-primary radius">
		<i class="Hui-iconfont">&#xe600;</i> 添加菜单</a></span> </div>
	<div class="mt-20">
	
	<table class="table table-border table-bordered table-hover table-bg table-sort">
		<thead>
			<tr id="data" class="text-c" 
			data="{url:'/users/listBaseManagerMenueRes.html',pageSize:10,
			rows:[{w:80,name:'id',value:'id'},{w:80,name:'菜单名字',value:'name'},
			{w:80,name:'链接地址',value:'href'},{w:80,name:'排序',value:'rink'},
			{w:80,name:'创建人',value:'creater'},{w:80,name:'父ID',value:'pid'},
			{w:80,name:'创建时间',value:'createtime',type:'time'},
			]}">
			</tr>
		</thead><tbody id="tbody"></tbody>
	</table>
	<div class="dataTables_wrapper no-footer">
	<div id="pageData" class="dataTables_info" role="status" aria-live="polite"></div>
	<div id="pageNumber" class="dataTables_paginate paging_simple_numbers">
		
		
		
		</div>
	</div>
	</div>
	<div></div>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="http://res.easywan.info/public/hui/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="http://res.easywan.info/public/hui/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="http://res.easywan.info/public/hui/static/h-ui/js/H-ui.min.js"></script> 
<script type="text/javascript" src="http://res.easywan.info/public/hui/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->


<script type="text/javascript" src="http://res.easywan.info/public/hui/lib/datatables/1.10.0/jquery.dataTables.min.js"></script> 

<script type="text/javascript" src="http://res.easywan.info/public/hui/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript">
function add(title,url,w,h){
	layer_show(title,url,w,h);
}
/*用户-查看*/
function member_show(title,url,id,w,h){
	layer_show(title,url,w,h);
}
/*用户-停用*/
function member_stop(obj,id){
	layer.confirm('确认要停用吗？',function(index){
		$.ajax({
			type: 'POST',
			url: '',
			dataType: 'json',
			success: function(data){
				$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" onClick="member_start(this,id)" href="javascript:;" title="启用"><i class="Hui-iconfont">&#xe6e1;</i></a>');
				$(obj).parents("tr").find(".td-status").html('<span class="label label-defaunt radius">已停用</span>');
				$(obj).remove();
				layer.msg('已停用!',{icon: 5,time:1000});
			},
			error:function(data) {
				console.log(data.msg);
			},
		});		
	});
}

/*用户-启用*/
function member_start(obj,id){
	layer.confirm('确认要启用吗？',function(index){
		$.ajax({
			type: 'POST',
			url: '',
			dataType: 'json',
			success: function(data){
				$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" onClick="member_stop(this,id)" href="javascript:;" title="停用"><i class="Hui-iconfont">&#xe631;</i></a>');
				$(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已启用</span>');
				$(obj).remove();
				layer.msg('已启用!',{icon: 6,time:1000});
			},
			error:function(data) {
				console.log(data.msg);
			},
		});
	});
}
/*用户-编辑*/
function member_edit(title,url,id,w,h){
	layer_show(title,url,w,h);
}
/*密码-修改*/
function change_password(title,url,id,w,h){
	layer_show(title,url,w,h);	
}
/*用户-删除*/
function member_del(obj,id){
	layer.confirm('确认要删除吗？',function(index){
		$.ajax({
			type: 'POST',
			url: '',
			dataType: 'json',
			success: function(data){
				$(obj).parents("tr").remove();
				layer.msg('已删除!',{icon:1,time:1000});
			},
			error:function(data) {
				console.log(data.msg);
			},
		});		
	});
}
</script> 
<script type="text/javascript" src="http://res.easywan.info/public/static/js/item.js"></script>
 <script type="text/javascript">
	$(function(){//查询脚本
		$("#serchId").click(function(){
			var starttime = $("#startTime").val();
			var endtime = $("#endTime").val();
			var params = [{name:'starttime',value:starttime},{name:'endtime',value:endtime}
				,{name:'name',value:$("#name").val()},{name:'id',value:$("#id").val()}];
			console.log(params);
			checkItems(false,"",params);
		})
	})
</script>
<!-- <script type="text/javascript" src="http://res.easywan.info/public/hui/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
 -->
 </body>
</html>